Skip to main content

Typography

The base font size is 14px. All other font sizes are based on this value.

Display

Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a display heading—a larger, slightly more opinionated heading style.

ClassEquivalent pixelsEquivalent remsExample
.display-180px5.714remDisplay
.display-272px5.143remDisplay
.display-364px4.571remDisplay
.display-456px4remDisplay
.display-548px3.429remDisplay
.display-640px2.857remDisplay

Headings

ClassTagEquivalent pixelsEquivalent remsExample
.h1h140px2.857remHeading
.h2h232px2.286remHeading
.h3h328px2remHeading
.h4h424px1.714remHeading
.h5h520px1.429remHeading
.h6h616px1.143remHeading

Font Sizes

The base font size is 14px. All other font sizes are based on this value.

ClassEquivalent pixelsEquivalent remsExample
.fs-4xl32px2.286remExample
.fs-3xl30px2.143remExample
.fs-xxl24px1.714remExample
.fs-xl20px1.429remExample
.fs-lg16px1.143remExample
.fs-md14px (root)1remExample
.fs-sm13px0.929remExample
.fs-xs12px0.857remExample
.fs-xxs11px0.786remExample
.fs-3xs10px0.714remExample

Font Weights

Kyber's predefined font weight classes allow developers and designers to easily apply different font weights to text elements, providing fine-grained control over typography and emphasizing or de-emphasizing text as needed.

ClassEquivalent WeightExample
.fw-light200, 300Example
.fw-normal400Example
.fw-medium500Example
.fw-semibold600Example
.fw-bold700Example

Section Headers

ClassExample
.section-header-xsSection Heading
.section-header-smSection Heading
.section-header-mdSection Heading
.section-header-lgSection Heading
.section-header-xlSection Heading

Standalone hyperlinks that do not use the <Link> component can be styled with the .klink class. Which will apply the expected text decoration and hover styling.

Result
Loading...
Live Editor

When using icons within a Link it is recommend to avoid rendering the text-decoration on hover. One option is to use the d-inline-block text-decoration-none classes on the icon.

Result
Loading...
Live Editor

Other Font Concerns

Font Family

There are 2 utility classes that can be used to apply Ivar Text Regular and Ivar Headline font families to containers.

Result
Loading...
Live Editor